Skip to contentSkip to conversation

Status Message Missing IP Address

Openvpn-devel [email protected]... 2 participants 3 messages Apr 24, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

This makes sense to me on the server side, but I'm running the management interface on the client ... why would it not know (or at least report) it's IP address?

Thanks,
... Russell

-----Original Message-----
From: David Sommerseth [[email protected]...]
Sent: Saturday, April 24, 2010 5:08 AM
To: [email protected]...
Cc: [email protected]; [email protected]
Subject: Re: [Openvpn-devel] Status Message Missing IP Address

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 17 lines · On 24/04/10 06:54, [email protected]... wrote:

Hi,

I have found what seems to be an interesting feature (bug) of the management interface – as I have been using it to write a connection monitor application.

Up until recently I have been using the server-bridge command on the server, and setting up a bridge (allowing OpenVPN to assign the IP address). When I did this the management interface on the client reported the IP address that it was assigned (both in real-time or manual state commands). However, now I have changed the server configuration file to allow the local DHCP server (router) to assign the client IP address. While this works fine, and the client connection is functional, the management interface no longer reports the client IP address.

Quoted 1 line

Is this a known (or for some reason planned) mode of operation?

Without having looked at the code, I would say this sounds reasonable. As OpenVPN would not care about which IP address is being used when it does not provide the IP address itself. The only reason OpenVPN would do that is to avoid giving out the same IP address to several clients. The rest of OpenVPN's task is to pass the traffic coming from the UDP/TCP port on the Internet side, encrypt/decrypt the data and put it into the TAP interface (in your case).

Having that said, it can be done some research on how the "learn address" state is implemented and how that state is used when OpenVPN is not assigning the VPN IP addresses.

kind regards,

David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkvSwx0ACgkQDC186MBRfrqT8QCfWhQGeVhp6Fm2CjF7jJ46Tdk8 wqcAn09kxxP+efeuZOoUTenph02+zwOW
=BWfu
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 7 lines · On 04/24/2010 09:34:46 AM, [email protected]... wrote:

Hi,

This makes sense to me on the server side, but I'm running the management interface on the client ... why would it not know (or at least report) it's IP address?

Because it's not OpenVPN's IP address it's the client OS's IP address. OpenVPN is acting as a virtual wire. The client is obtaining it's IP as it usually does, just from a server on the other end of the wire. At least if I'm understanding your configuration.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#2 lore raw

This makes sense - thanks!!!

... Russell

Quoted 1 line · Karl O. Pinc
Quoted 21 lines · On 04/24/2010 09:34:46 AM, [email protected]... wrote:
Quoted 7 lines

Hi,

This makes sense to me on the server side, but I'm running the management interface on the client ... why would it not know (or at least report) it's IP address?

Because it's not OpenVPN's IP address it's the client OS's IP address. OpenVPN is acting as a virtual wire. The client is obtaining it's IP as it usually does, just from a server on the other end of the wire. At least if I'm understanding your configuration.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein